from openai import OpenAI

# 确保在这里使用正确的 API 密钥
api_key = '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'

client = OpenAI(api_key=api_key)

response = client.responses.create(
    model="gpt-3.5-turbo",
    input="Tell me a three sentence bedtime story about a unicorn."
)

print(response)
